package org.lisen.printhtmluse.controller;

import org.lisen.printhtmlstarter.service.PrintHtmlService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.IOException;

/**
 * @author laughing
 * @date 2020/9/26
 * @site https://www.lisen.org
 */
@RestController
public class TestController {

    @Resource
    PrintHtmlService printHtmlService;

    @RequestMapping("/print")
    public String print() throws IOException {
        return printHtmlService.print();
    }

}
